package com.example.demo;

import com.example.demo.model.vo.InquiryAddVo;
import com.example.demo.model.vo.InquiryVo;
import com.example.demo.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;


/**
 * Created by Administrator on 2018/10/26 0026.
 */
@FeignClient(name = "inquiry2")
public interface InquiyTest {
    @GetMapping("/inquiry/selectById")
    Result<InquiryVo> selectById(@RequestParam("id") Integer id);
    @PostMapping("/addInquiry")
    Result<InquiryVo> addInquiry(@RequestBody  InquiryAddVo inquiryAddVo);
}
